<table align=center bgcolor='#999999' border=0 cellpadding=2 cellspacing=1 width=99%>
  <tr bgcolor='#3a709f'>
    <td width='30%' valign='top' align="center"> <font color='#FFFFFF'><strong>TGL</strong></font></td>
    <td width='70%' valign='top' align="center"> <font color='#FFFFFF'><strong>Keterangan</strong> </font></td>
  </tr>
<?  
	$qry_event = mysql_query("select * from event order by event_tgl ASC");
	while ($ev=mysql_fetch_array($qry_event))
	{
		$tgl = explode("-",$ev["event_tgl"]);
		$tg = explode(" ",$tgl[2]);
		if ($_GET["tgl_e"] == $ev["event_id"])
		{
		  echo "<tr bgcolor='".$ev["event_color"]."'>
			<td valign='top' align=center>".$tg[0]."-".$tgl[1]."-".$tgl[0]."</td>
			<td valign='top'>".$ev["event_ket"]."</td>
		  </tr>";
		 } else
		 {
		  echo "<tr bgcolor='#ced3ff'>
			<td valign='top' align=center>".$tg[0]."-".$tgl[1]."-".$tgl[0]."</td>
			<td valign='top'>".$ev["event_ket"]."</td>
		  </tr>";
		 }
	}
?>
</table>